import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [  {
  path: '/',
  redirect: '/museums',
},
{
  path: '/home',
  name: 'home',
  component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/home.vue'),
  children: [
    {
      path: '/museums',
      name: 'museums',
      component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/museums/index.vue'),
    },
    {
      path: '/urbanArea',
      name: 'urbanArea',
      component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/urbanArea/index.vue'),
    },
    {
      path: '/revolutionaryMemorial',
      name: 'revolutionaryMemorial',
      component: () => import(/* webpackChunkName: "LSD.bighome" */ '../views/revolutionaryMemorial/index.vue'),
    }
  ]
},
];
const router = new VueRouter({
  mode: "hash",
  // base: process.env.BASE_URL,
  routes
});

export default router;
